<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>登录页面</title>
</head>
<body>

<!-- form的action后的值为: @WebServlet中对应的哪个url mappping的值 -->
    <form action="LoginServlet" method="post">
         <input type="text" name="username" placeholder="请输入用户名" ><br/>
         <input type="password" name="userpwd" placeholder="请输入密码" ><br/>
         <!-- 隐藏域传递op的值给servlet,servlet会根据op的值进行判断从而决定执行后续操作 -->
         <input type="hidden" name="op" value="login"><br/>
         <input type="checkbox" value="rememberme" name="cksremember" id="cksremember">记住密码<br/>
         <input type="submit" value="登录"><br/>
    </form>
</body>
</html>